package com.medusa.aps.business.modules.plan.controller;


import com.medusa.aps.business.modules.plan.model.input.GanttPageParm;
import com.medusa.aps.business.modules.plan.model.output.GanttChartVo;
import com.medusa.aps.business.modules.plan.mp.service.GanttChartequipmentService;
import com.medusa.aps.business.common.model.resp.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 甘特图-设备控制层
 *
 * @author yuxh
 * @since 2023-08-14 17:37:45
 */
@Tag(name = "甘特图-设备控制层")
@RestController
@RequestMapping("/ganttChartequipment")
public class GanttChartEquipmentController {
    /**
     * 服务对象
     */
    @Resource
    private GanttChartequipmentService ganttChartequipmentService;

    /**
     * 分页查询所有数据
     *
     * @param param 查询条件实体对象
     * @return 所有数据
     */
    @Operation(description = "分页查询所有数据", method = "GET", summary = "分页查询所有数据")
    @GetMapping("/selectAll")
    public Result<GanttChartVo> selectAll(@Parameter(description = "分页参数") GanttPageParm param) {
        return Result.ok(
                ganttChartequipmentService.selectGattList(param)
        );
    }

}

